#基础镜像信息
FROM 192.168.102.130:13260/xyy/python-base:3.12.4

#设置工作目录,会自动创建
WORKDIR /flask_app

##安装依赖包
COPY requirements.txt /flask_app/
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir -r requirements.txt

##拷贝代码文件到镜像中
COPY start.py uwsgi.ini config.py /flask_app/
COPY app ./app/

#启动命令
CMD ["uwsgi", "--ini", "uwsgi.ini"]